import axiosInstance from '@/utils/request.js'

//获取轮播图数据
export function getBannerAPI(params = {}) {
  const { distributionSite = '1' } = params
  return axiosInstance({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}
//获取新鲜好物数据
export const findNewAPI = () => {
  return axiosInstance({
    url: '/home/new'
  })
}
//获取人气推荐数据
export const hotAPI = () => {
  return axiosInstance({
    url: '/home/hot'
  })
}
//获取产品列表数据
export const getGoodsAPI = () => {
  return axiosInstance({
    url: '/home/goods'
  })
}